package com.zyf.cloud.getway.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(name = "user-service")
public interface UserFeign {

    /**
     * 调取登录的方法
     * @param name
     * @param password
     * @return
     */
    @PostMapping("/user/api_login")
    String login(@RequestParam("name") String name,@RequestParam("password") String password);

}
